package ar.uba.dc.cmovil.tripplanner.domain;

import java.io.Serializable;

/**
 * Created by gbarbuto on 9/24/13.
 */
public class Location implements Serializable {

	private Coordinate latitude;
	private Coordinate longitude;

	public Location(Coordinate latitude, Coordinate longitude) {
		if (latitude == null) {
			throw new IllegalArgumentException("latitude cannot be null");
		}

		if (longitude == null) {
			throw new IllegalArgumentException("longitude cannot be null");
		}

		this.latitude = latitude;
		this.longitude = longitude;
	}

	public Coordinate getLatitude() {
		return this.latitude;
	}

	public Coordinate getLongitude() {
		return this.longitude;
	}
}
